#include <iostream>
#include <fstream>
using namespace std;

struct Student {
	char name[20];
	int score;
};

void solve()
{
	Student s;
	ofstream outFile("D:/temp/students.dat", ios::out | ios::binary);
	while (cin >> s.name >> s.score)
		outFile.write((const char*)&s, sizeof(s));
	outFile.close();
}

int main()
{
	solve();
	return 0;
}